package com.ujoku.request;


import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * Created by Greg on 2014/10/20.
 */
public class MemberSecurityCodeForm {
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSecurity_code() {
        return security_code;
    }

    public void setSecurity_code(String security_code) {
        this.security_code = security_code;
    }

    @NotEmpty(message = "手机号不能为空.")
    private String userName;

    @NotEmpty(message = "安全码不能为空.")
    @Pattern(regexp = "^[A-Za-z0-9]{4}$", message = "请输入4位有效安全码!")
    private String security_code;

    @Size(max=6,  message="The field must be less than {max} characters")
    private String captcha;

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

}
